<?php
class Bbling_Model_Entity_Abstract extends Evebit_Model_Abstract {
	
    protected function _afterLoad() {
		return $this;
	}
	
	/**
	 * (non-PHPdoc)
	 * @see Evebit_Model_Abstract::_beforeSave()
	 */
	protected function _beforeSave() {	
		return $this;
	}
	
    public function extraSave(){
		$result = $this->getResource()->extraSave($this);
		$this->unsetData();
		if ($result){
			$this->addData(array('id'=>$result));
		}
		return $this;
	}
	/**
	 * (non-PHPdoc)
	 * @return Evebit_Model_Abstract::_beforeDelete()
	 */
	protected function _beforeDelete() {
		return $this;
	}

	public function extraLoad(){
		$result = $this->getResource()->extraLoad($this);
		$this->addData($result);
		return $this;
	}
	
	public function extraDelete(){
		$this->getResource()->extraDelete($this);
		
		return $this;
	}
}